package net.stratusprogramming.school.Game.Framework.World;

import java.util.ArrayList;

public class EventHandler {
	private ArrayList<Event>[] subscribers;
	
	@SuppressWarnings("unchecked")
	public EventHandler() {
		// init subscribers array
		subscribers = new ArrayList[EventType.values().length];
		for(int i = 0; i < EventType.values().length; i++) {
			subscribers[i] = new ArrayList<Event>();
		}
	}
}
